import io.reactivex.Observable;

public class C14 {

    public static void main(String[] args) {
        /* If initializing your emission has a likelihood of throwing an error, 
         * you should use Observable.fromCallable() instead of Observable.just().
         */
        Observable.fromCallable(() -> 1 / 0)
                  .subscribe(i -> System.out.println("Received: " + i),
                             e -> System.out.println("Error Captured: " + e));
    }

}
//EOP
